<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增广告计划')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ad-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告id：</label>
				<div class="col-sm-8">
					<input id="adId" name="adId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告主ID：</label>
				<div class="col-sm-8">
					<input id="advertiserId" name="advertiserId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组ID：</label>
				<div class="col-sm-8">
					<input id="campaignId" name="campaignId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">投放范围：</label>
				<div class="col-sm-8">
					<input id="deliveryRange" name="deliveryRange" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组预算类型：</label>
				<div class="col-sm-8">
					<input id="budgetMode" name="budgetMode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组预算：</label>
				<div class="col-sm-8">
					<input id="budget" name="budget" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放起始时间：</label>
				<div class="col-sm-8">
					<input id="startTime" name="startTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放结束时间：</label>
				<div class="col-sm-8">
					<input id="endTime" name="endTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划出价类型：</label>
				<div class="col-sm-8">
					<input id="pricing" name="pricing" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放时间类型：</label>
				<div class="col-sm-8">
					<input id="scheduleType" name="scheduleType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放时段：</label>
				<div class="col-sm-8">
					<input id="scheduleTime" name="scheduleTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告投放速度类型：</label>
				<div class="col-sm-8">
					<input id="flowControlMode" name="flowControlMode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">应用直达链接：</label>
				<div class="col-sm-8">
					<input id="openUrl" name="openUrl" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">应用下载方式：</label>
				<div class="col-sm-8">
					<input id="downloadType" name="downloadType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告落地页链接：</label>
				<div class="col-sm-8">
					<input id="externalUrl" name="externalUrl" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告应用下载链接：</label>
				<div class="col-sm-8">
					<input id="downloadUrl" name="downloadUrl" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告名称：</label>
				<div class="col-sm-8">
					<input id="name" name="name" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告应用下载类型：</label>
				<div class="col-sm-8">
					<input id="appType" name="appType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告应用下载包名：</label>
				<div class="col-sm-8">
					<input id="package" name="package" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">过滤已转化用户类型字段：</label>
				<div class="col-sm-8">
					<input id="hideIfConverted" name="hideIfConverted" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">门店ids：</label>
				<div class="col-sm-8">
					<input id="advertiserStoreIds" name="advertiserStoreIds" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">门店类型：</label>
				<div class="col-sm-8">
					<input id="storeType" name="storeType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">过滤已安装：</label>
				<div class="col-sm-8">
					<input id="hideIfExists" name="hideIfExists" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">ocpm广告转化出价：</label>
				<div class="col-sm-8">
					<input id="cpaBid" name="cpaBid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">转化类型：</label>
				<div class="col-sm-8">
					<input id="externalActions" name="externalActions" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">穿山甲视频创意类型：</label>
				<div class="col-sm-8">
					<input id="unionVideoType" name="unionVideoType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">深度优化方式：</label>
				<div class="col-sm-8">
					<input id="deepBidType" name="deepBidType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">深度优化出价：</label>
				<div class="col-sm-8">
					<input id="deepCpabid" name="deepCpabid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">第三方唯一键：</label>
				<div class="col-sm-8">
					<input id="uniqueFk" name="uniqueFk" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">自动出价类型：</label>
				<div class="col-sm-8">
					<input id="smartBidType" name="smartBidType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否调整自动出价：</label>
				<div class="col-sm-8">
					<input id="adjustCpa" name="adjustCpa" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="createUser" name="createUser" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新人：</label>
				<div class="col-sm-8">
					<input id="updateUser" name="updateUser" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新时间：</label>
				<div class="col-sm-8">
					<input id="updateTime" name="updateTime" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "dsp/ad"
		$("#form-ad-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-ad-add').serialize());
	        }
	    }
	</script>
</body>
</html>
